<template>
	<view class="box" v-for="v in store.reportList" :key="v.id">
		<view class="header-box" >
			<view class="header">
				<view class="personal-information">
					<text>姓名：{{v.patient.name}}</text>
					<text>性别：{{v.patient.sex==0?'女':'男'}}</text>
					<text>年龄：{{v.patient.age}}</text>
				</view>
				<view class="date">
					<text>报告日期：{{v.checkDate}}</text>
				</view>
			</view>
		</view>
		<view class="content">
			<text>{{v.content}}</text>
		</view>
		<view class="footer"></view>
	</view>
</template>

<script setup>
import {onLoad} from "@dcloudio/uni-app"
import {reportFormStore} from '@/store/reportFormStore.js'
import { reactive,onMounted } from "vue";

	const store=reportFormStore()
let Data=reactive({
		patient:''
	})
onMounted(()=>{
		Data.patient=store.reportList.patient
		console.log('option',store.reportList)
	})
</script>

<style scope lang="less">
	.box{
		width: 750rpx;
		height: 1174rpx;
		background-color:#fbfdff ;
	}
	.header-box{
		width: 750rpx;
		height: 308rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.header{
		width: 688rpx;
		height: 178rpx;
		border-radius: 10rpx;
		background: #f3f8fe;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.personal-information{
		width: 630rpx;
		height: 44rpx;
		display: flex;
		justify-content: space-between;
		margin: 0 30rpx;
		font-size: 30rpx;
		color: #474848;
	}
	.date{
		margin:36rpx 0 0 30rpx;
		font-size: 24rpx;
		color: #acabaa;
	}
	.content{
		width: 688rpx;
		background-color: white;
		border-radius: 20rpx;
		margin: 0 30rpx;
		box-shadow: 0 0 2px #e0e0e0;
		display: flex;
		flex-direction: column;
		text{
			margin: 22rpx 22rpx;
			font-size: 30rpx;
			color: #555555;
		}
	}
</style>
